package com.mobilesales.android.infrastructure;

import com.mobilesales.android.model.products.Category;
import com.mobilesales.android.model.products.Product;

public class ProductCategoryItem {

	private Product product;
	private Category category;
	
	public ProductCategoryItem(Product product) {
		this.product = product;
	}
	
	public ProductCategoryItem(Category category) {
		this.category = category;
	}
	
	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.product = null;
		this.category = category;
	}

	public Product getProduct() {
		return product;
	}
	
	public void setProduct(Product product) {
		this.category = null;
		this.product = product;
	}
	
	public boolean isCategory() {
		return this.category != null;
	}
}
